package com.dg.cuckoo.admin.service.impl;

import com.dg.cuckoo.admin.dto.proCarryOut.ProExpendDto;
import com.dg.cuckoo.admin.service.ExpendArmorService;
import com.dg.cuckoo.admin.service.ExpendProphaseService;
import com.dg.cuckoo.common.utils.PageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExpendArmorServiceimpl implements ExpendArmorService {

    @Autowired
    private ExpendProphaseService service;


    @Override
    public void save(String projectId, ProExpendDto dto) {
        service.powerfulSave(6,projectId,dto);
    }

    @Override
    public void update(String id, String projectId, ProExpendDto dto) {

        service.powerfulUpdate(6,id,projectId,dto);
    }


    @Override
    public PageModel page(Integer page, Integer pageSize, String projectId) {
        return service.powerfulPage(6,page,pageSize,projectId);
    }
}
